package bom.example.common.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName sys_log
 */
@TableName(value ="sys_log")
public class SysLog implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 接口名称
     */
    private String logName;

    /**
     * 接口访问方式
     */
    private String logMethod;

    /**
     * 接口路径
     */
    private String logPath;

    /**
     * 用户id
     */
    private String logUserid;

    /**
     * 用户账号
     */
    private String logUsername;

    /**
     * 用户姓名
     */
    private String logRealname;

    /**
     * 日志参数
     */
    private String logParam;

    /**
     * 日志创建时间
     */
    private Date logCreatetime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public String getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 接口名称
     */
    public String getLogName() {
        return logName;
    }

    /**
     * 接口名称
     */
    public void setLogName(String logName) {
        this.logName = logName;
    }

    /**
     * 接口访问方式
     */
    public String getLogMethod() {
        return logMethod;
    }

    /**
     * 接口访问方式
     */
    public void setLogMethod(String logMethod) {
        this.logMethod = logMethod;
    }

    /**
     * 接口路径
     */
    public String getLogPath() {
        return logPath;
    }

    /**
     * 接口路径
     */
    public void setLogPath(String logPath) {
        this.logPath = logPath;
    }

    /**
     * 用户id
     */
    public String getLogUserid() {
        return logUserid;
    }

    /**
     * 用户id
     */
    public void setLogUserid(String logUserid) {
        this.logUserid = logUserid;
    }

    /**
     * 用户账号
     */
    public String getLogUsername() {
        return logUsername;
    }

    /**
     * 用户账号
     */
    public void setLogUsername(String logUsername) {
        this.logUsername = logUsername;
    }

    /**
     * 用户姓名
     */
    public String getLogRealname() {
        return logRealname;
    }

    /**
     * 用户姓名
     */
    public void setLogRealname(String logRealname) {
        this.logRealname = logRealname;
    }

    /**
     * 日志参数
     */
    public String getLogParam() {
        return logParam;
    }

    /**
     * 日志参数
     */
    public void setLogParam(String logParam) {
        this.logParam = logParam;
    }

    /**
     * 日志创建时间
     */
    public Date getLogCreatetime() {
        return logCreatetime;
    }

    /**
     * 日志创建时间
     */
    public void setLogCreatetime(Date logCreatetime) {
        this.logCreatetime = logCreatetime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysLog other = (SysLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getLogName() == null ? other.getLogName() == null : this.getLogName().equals(other.getLogName()))
            && (this.getLogMethod() == null ? other.getLogMethod() == null : this.getLogMethod().equals(other.getLogMethod()))
            && (this.getLogPath() == null ? other.getLogPath() == null : this.getLogPath().equals(other.getLogPath()))
            && (this.getLogUserid() == null ? other.getLogUserid() == null : this.getLogUserid().equals(other.getLogUserid()))
            && (this.getLogUsername() == null ? other.getLogUsername() == null : this.getLogUsername().equals(other.getLogUsername()))
            && (this.getLogRealname() == null ? other.getLogRealname() == null : this.getLogRealname().equals(other.getLogRealname()))
            && (this.getLogParam() == null ? other.getLogParam() == null : this.getLogParam().equals(other.getLogParam()))
            && (this.getLogCreatetime() == null ? other.getLogCreatetime() == null : this.getLogCreatetime().equals(other.getLogCreatetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getLogName() == null) ? 0 : getLogName().hashCode());
        result = prime * result + ((getLogMethod() == null) ? 0 : getLogMethod().hashCode());
        result = prime * result + ((getLogPath() == null) ? 0 : getLogPath().hashCode());
        result = prime * result + ((getLogUserid() == null) ? 0 : getLogUserid().hashCode());
        result = prime * result + ((getLogUsername() == null) ? 0 : getLogUsername().hashCode());
        result = prime * result + ((getLogRealname() == null) ? 0 : getLogRealname().hashCode());
        result = prime * result + ((getLogParam() == null) ? 0 : getLogParam().hashCode());
        result = prime * result + ((getLogCreatetime() == null) ? 0 : getLogCreatetime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", logName=").append(logName);
        sb.append(", logMethod=").append(logMethod);
        sb.append(", logPath=").append(logPath);
        sb.append(", logUserid=").append(logUserid);
        sb.append(", logUsername=").append(logUsername);
        sb.append(", logRealname=").append(logRealname);
        sb.append(", logParam=").append(logParam);
        sb.append(", logCreatetime=").append(logCreatetime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}